package org.xuyuji.study.spring_jdbctemplate_demo.model;

public class UserModel {
	private int id;
	
	private String username;
	
	private long money;

	public int getId() {
		return id;
	}

	public UserModel setId(int id) {
		this.id = id;
		return this;
	}

	public String getUsername() {
		return username;
	}

	public UserModel setUsername(String username) {
		this.username = username;
		return this;
	}

	public long getMoney() {
		return money;
	}

	public UserModel setMoney(long money) {
		this.money = money;
		return this;
	}
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		
		sb.append("id:").append(id).append(",");
		sb.append("username:").append(username).append(",");
		sb.append("money:").append(money);
		
		return sb.toString();
	}
}
